﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using STT.Layer.Connection;
namespace STT.Home
{
    public partial class UcTinTucSuKien : System.Web.UI.UserControl
    {
        ToolBox tb = new ToolBox();
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            LoadTT();
        }
        private void LoadTT()
        {
            DataTable dt = tb.GetDataTableById("[Get_TinTuc_ById]", Request.QueryString.Get("key"));
            dtlchitiett.DataSource = dt;
            dtlchitiett.DataBind();
        }
    }
}